package me.milo.phone.base;

import java.io.File;

import me.milo.phone.constant.FileConstant;

import android.app.Application;
import android.content.res.Configuration;

public class PhoneApplication extends Application{

	private static PhoneApplication instance; 
	@Override
	public void onConfigurationChanged(Configuration newConfig) {
		super.onConfigurationChanged(newConfig);
	}

	@Override
	public void onCreate() {
		super.onCreate();
		instance = this;
		File dir = new File(FileConstant.IMAGE_FILE_PATH);
		if(!dir.exists()){
			dir.mkdirs();
		}
	}

	@Override
	public void onLowMemory() {
		super.onLowMemory();
	}

	@Override
	public void onTerminate() {
		super.onTerminate();
	}
	public static PhoneApplication getInstance(){
		return instance;
	}
	
}
